import axios from './axios.js'

// 查询列表
export function listKind(query) {
  return axios.request({
    url: 'api/web/kind/list',
    method: 'get',
    params: query
  })
}

export function addKind(data) {
  return axios.request({
    url: 'api/web/kind',
    method: 'post',
    data: data
  })
}

export function updateKind(data) {
  return axios.request({
    url: 'api/web/kind',
    method: 'put',
    data: data
  })
}

export function delKind(id) {
  return axios.request({
    url: 'api/web/kind/'+id,
    method: 'delete'
  })
}